// 分组
export function groupBy (arr, param) {
  return arr.reduce((pre, curr) => {
    let key = curr[param]
    if (!pre[key]) {
      pre[key] = []
    }
    pre[key].push(curr)
    return pre
  },{})
}
